package com.changpay.zywy.mvp.model


import com.changpay.zywy.base.BaseModel
import com.changpay.zywy.http.RetrofitHelper
import com.changpay.zywy.mvp.contract.MineContract
import com.changpay.zywy.bean.HttpResult
import com.changpay.zywy.bean.UserInfo
import io.reactivex.Observable

/**
 * Created by chenxz on 2018/5/27.
 */
class MineModel : BaseModel(), MineContract.Model {
    override fun getUserInfo(token: String): Observable<HttpResult<UserInfo>> {
        return RetrofitHelper.service.getUserInfo(token)
    }

}